Object::~Object

Section: ET++ method description (n)
Updated: automatically Fri Mar 1 10:54:57 1991
Index Return to Main Contents
 

NAME

Object::~Object - instance method  

TEMPLATE

void ~Object()  

SPECIFIERS

public  

DESCRIPTION

Object declares its destructor as virtual, so for all regular classes, destruction always works correctly (s. ARM).
If an object is about to be deleted, all its observers are notified about this fact by the change propagation mechanism. They receive cPartSenderDied as the part code argument of method DoObserve.
Important Note: If the client re-implements the change propagation mechanism in a particular class, then the notification of the observers (about the death) must be done in that class's destructor, because Object's destructor would not invoke the overridden Send!
As an implementation detail, the object about to deleted is removed from the global object table through the method ObjectTable::Remove. It has been inserted into the object table by Object's constructor.  

ARGUMENTS

none

 

RETURN ARGUMENT

void

 

CATEGORIES

destructor

 

FILES

implementation:
Object.C


 

Index

NAME
TEMPLATE
SPECIFIERS
DESCRIPTION
ARGUMENTS
RETURN ARGUMENT
CATEGORIES
FILES

This document was created by man2html, using the manual pages.
Time: 00:40:25 GMT, March 30, 2022